<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title>Title</title>
    <link rel="stylesheet" href="./dist/css/swiper.min.css">
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        .swiper-container{
            width: 380px;
            /* height: 146px; */
            height: 100%;
        }
        ul{
            list-style: none;
        }
        .swiper-slide img{
            width: 100%;
            display: block;
        }
       .swiper-button-next, .swiper-button-prev {
           background-size: 15px 44px;
           opacity: 0.8;
       }
       .swiper-pagination-bullet-active {
           background-color: #fff;
       }
       .swiper-scrollbar-drag {
           background-color: #fff;
       }
    </style>
</head>
<body>
<div class="swiper-container">
    <!--图片-->
    <ul class="swiper-wrapper">
        <li class="swiper-slide">
            <a href="javascript:;">
                <img src="./uploads/l1.jpg" alt="">
            </a>
        </li>
        <li  class="swiper-slide">
            <a href="javascript:;">
                <img src="./uploads/l2.jpg" alt="">
            </a>
        </li>
        <li  class="swiper-slide">
            <a href="javascript:;">
                <img src="./uploads/l3.jpg" alt="">
            </a>
        </li>
        <li  class="swiper-slide">
            <a href="javascript:;">
                <img src="./uploads/l4.jpg" alt="">
            </a>
        </li>
        <li  class="swiper-slide">
            <a href="javascript:;">
                <img src="./uploads/l5.jpg" alt="">
            </a>
        </li>
        <li  class="swiper-slide">
            <a href="javascript:;">
                <img src="./uploads/l6.jpg" alt="">
            </a>
        </li>
        <li  class="swiper-slide">
            <a href="javascript:;">
                <img src="./uploads/l7.jpg" alt="">
            </a>
        </li>
        <li  class="swiper-slide">
            <a href="javascript:;">
                <img src="./uploads/l8.jpg" alt="">
            </a>
        </li>
    </ul>
    <!-- 小白点 -->
    <div class="swiper-pagination"></div>
    <!-- 前进后退箭头 -->
    <div class="swiper-button-prev swiper-button-white"></div>
    <div class="swiper-button-next swiper-button-white"></div>
    <!-- 底部滚动条 -->
    <div class="swiper-scrollbar"></div>
</div>
<script src="./dist/js/swiper.min.js"></script>
    <script>
    var mySwiper = new Swiper('.swiper-container',{
        // 自动播放
        autoplay:2000,
        // 循环滚动
        loop:true,
        // 前进后退箭头
        prevButton:'.swiper-button-prev',
        nextButton:'.swiper-button-next',
        // 底部滚动条
        scrollbar:'.swiper-scrollbar',
        // 滚动条是否自动隐藏
        scrollbarHide:true,
        // 小白点，可点击切换
        pagination : '.swiper-pagination',
        paginationClickable :true,
        // 用户操作后，还可继续循环执行
        autoplayDisableOnInteraction:false,
        // touchRatio : 1,

  }); 


</script>
</body>
</html>